main: Only verify SUPERUSER flag if using default sysroot
authorColin Walters <walters@verbum.org>
Wed, 1 Apr 2015 10:21:34 +0000 (06:21 -0400)
committerColin Walters <walters@verbum.org>
Wed, 1 Apr 2015 10:21:34 +0000 (06:21 -0400)
commit2a30af72db2f2f535a2dff9b13b039bfc6e75465
tree7dc11905c0cbd4e240c7608984677bf7da5f872b
parente92fd9a83da1e40964b828115462fdab61324c8d
main: Only verify SUPERUSER flag if using default sysroot

The use case for non-default sysroots that I know of are:
 1) The current test suite
 2) Installers (Anaconda)
 3) Inspecting VM disks

For 2) and 3), it'll quickly be obvious if they're not running as
root, and these are more obscure cases.  We want to allow 1), and this
is a simple way to do it.

https://bugzilla.gnome.org/show_bug.cgi?id=747164
src/ostree/ot-main.c